package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.BaseObjectBean;
import cn.xfdzx.android.apps.shop.bean.CarConfirmBeen;
import cn.xfdzx.android.apps.shop.bean.ConfirmGoodBeen;
import cn.xfdzx.android.apps.shop.bean.ShopCarListBeen;
import cn.xfdzx.android.apps.shop.contract.ShopCarListContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class ShopCarListModel implements ShopCarListContract.Model {



    @Override
    public Flowable<ShopCarListBeen> initData(String ty ) {
        return RetrofitClient.getInstance().getApi().shopCarList( ty );
    }

    @Override
    public Flowable<BaseObjectBean> updateCarNum(String id, String number) {
        return RetrofitClient.getInstance().getApi().updateCartNum(id,number);
    }

    @Override
    public Flowable<BaseObjectBean> removeGood(String ids) {
        return RetrofitClient.getInstance().getApi().removeGood(ids);
    }
  @Override
    public Flowable<ConfirmGoodBeen> confirm(String  cartId,String  user_curent_lng,String  user_curent_lat) {
        return RetrofitClient.getInstance().getApi().confirm(cartId,user_curent_lng,user_curent_lat);
    }


}
